export default function absoluteValueGreater(number: number, max: number) {
  if (Math.abs(number) > max) {
    return number > 0 ? max : -max;
  } else {
    return number;
  }
}
